﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace MvcRags.Examples.Models
{
    public class Customer
    {
        [Key]
        public int Id { get; set; }

        [Required]
        public string Name { get; set; }

        [Required]
        public string Country { get; set; }

        [Required]
        public string Mail { get; set; }

        public int Pvn { get; set; }

        public DateTime CreatedAt { get; set; }

        public Customer()
        {
            //Random rnd = new Random();
            //Pvn = rnd.Next(1000, 9999);
        }
    }
}